import { req } from "../utils/req.js"

// 公司列表接口
export const companyApi = (params) => req('GET',"/user/achieve/company/list", params);
// 曲线图
export const activationApi = (url,params) => req('POST',url, params);
// 业绩数据
export const perdataApi = (url,params) => req('POST',url, params);

export const pointWheelApi = (params) => req('GET',"/user/user/points/pointWheelinfo", params);


//保存轮盘记录
export const saveWheelRecord = (params) => req('POST',"/user/user/points/saveWheelRecord", params);
//查询下一次金额
export const getNextWheelDrawInfo = (params) => req('GET',"/user/user/points/getNextWheelDrawInfo", params);
//达标后保存金额
export const saveWheelAmount = (params) => req('POST',"/user/user/points/saveWheelAmount", params);
//获取领取记录
export const getWheelDrewRecordPage = (params) => req('GET',"/user/user/points/getWheelDrewRecordPage", params);
//获取中奖记录
export const getwheelRecord = (params) => req('POST',"/user/user/points/wheelRecord/pagination", params);
//获取好友助力列表
export const getHelperList = (params) => req('GET',"/user/user/points/getHelperList", params);
//分享成功给积分
export const setPointApi = (params) => req('POST',"/user/user/points/shareGetPoint", params);
//领取记录
export const receiveDataApi = (params) => req('POST',"/user/user/points/draw", params);
//保存签到
export const saveSignInApi = (params) => req('POST',"/user/user/saveSign", params);
//查询签到
export const getSignDetailApi = (params) => req('GET',"/user/user/getSign", params);
//获取收益记录
export const getRevenuePartDetailPageApi = (params) => req('GET',"/user/home/getRevenuePartDetailPage", params);